-- GENERATED SPELL FOR [Blackhand Veteran] --


function spell0_9819(pUnit, Event) --@Shield Bash,n/a--
pUnit:FullCastSpellOnTarget(11972,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9819', 8335, 1)
end

function spell1_9819(pUnit, Event) --@Shield Charge,n/a--
pUnit:FullCastSpellOnTarget(15749,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9819', 609, 1)
end

function spell2_9819(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(14516,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9819', 633, 1)
end

function Sorts_9819(pUnit, Event)
local choix_sorts_9819 = math.random(0, 2)
if choix_sorts_9819 == 0 then
pUnit:RegisterEvent('spell0_9819', 1, 1)
end
if choix_sorts_9819 == 1 then
pUnit:RegisterEvent('spell1_9819', 1, 1)
end
if choix_sorts_9819 == 2 then
pUnit:RegisterEvent('spell2_9819', 1, 1)
end
end

function mob9819_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_9819', math.random(1500, 3000), 1)
end

function mob9819_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9819_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9819_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(9819, 1, 'mob9819_Action')
RegisterUnitEvent(9819, 2, 'mob9819_Leave')
RegisterUnitEvent(9819, 3, 'mob9819_Kill')
RegisterUnitEvent(9819, 4, 'mob9819_Die')
